

<title>任务记录</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>短信设置</cite></a>
    <a><cite>任务记录</cite></a>
  </div>
</div>

<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-header">
      任务记录
    </div>
    <div class="layui-card-body">
      <div class="layui-clear layui-form" lay-filter="sms-form-task">
        <div class="layui-form-item searchBox layui-clear">
          <div class="searchType">客户名称</div>
          <input type="text" name="name" autocomplete="off" class="layui-input searchInput">
          <button class="layui-btn searchButton" lay-submit lay-filter="task-search">
            搜 索
          </button>
        </div>
        <div class="searchReset">重 置</div>
      </div>
      <div class="searchConditions layui-clear">
        <div>筛选条件：</div>
      </div>
      <div class="searchList">
        <ul class="typeList layui-clear">
          <div>短信类型：</div>
          <li data-sms_type_id="all" class="active">全部</li>
          <li data-sms_type_id="1">验证码短信</li>
          <li data-sms_type_id="2">普通业务短信</li>
          <li data-sms_type_id="3">营销短信</li>
        </ul>
        <ul class="originList layui-clear">
          <div>下发途径：</div>
          <li data-origin_id="all" class="active">全部</li>
          <li data-origin_id="1">客户接口</li>
          <li data-origin_id="2">客户后台</li>
          <li data-origin_id="3">平台后台</li>
          <li data-origin_id="4">超级管理员</li>
        </ul>
        <ul class="templateList layui-clear">
          <div>模板短信：</div>
          <li data-is_tpl_sms="all" class="active">全部</li>
          <li data-is_tpl_sms="1">是</li>
          <li data-is_tpl_sms="0">否</li>
        </ul>
        <ul class="statusList layui-clear">
          <div>状态：</div>
          <li data-status="all" class="active">全部</li>
          <li data-status="1">已提交</li>
          <li data-status="0">提交中</li>
          <li data-status="-1">待提交</li>
        </ul>

        <ul class="timeList layui-clear">
          <div>时间：</div>
          <li data-create_time="all" class="active">全部</li>
          <li data-create_time="today">今天</li>
          <li data-create_time="1 week">一周内</li>
          <li data-create_time="1 mouth">一月内</li>
          <li data-create_time="3 mouth">三月内</li>
          <li data-create_time="6 mouth">半年内</li>
          <li data-create_time="1 year">一年内</li>
        </ul>
      </div>
      <div class="searchShow role3">
        <label>打开筛选</label>
        <i class="layui-icon layui-icon-down"></i>
      </div>
    </div>
    <div class="layui-card-body">
      <table id="tasklog" lay-filter="smstask" ></table>
      <script type="text/html" id="buttonTpl">
        {{#  if(d.status == '1'){ }}
          <button class="layui-btn layui-btn-normal layui-btn-xs">已提交</button>
        {{#  } else if(d.status == '0'){ }}
          <button class="layui-btn layui-btn-warm layui-btn-xs">提交中</button>
        {{#  } else if(d.status == '-1'){ }}
          <button class="layui-btn layui-btn-danger layui-btn-xs">待提交</button>
        {{#  } else{ }}
          <button class="layui-btn layui-btn-primary layui-btn-xs">未知</button>
        {{#  } }}
      </script>
    </div>
  </div>
</div>

<script>
layui.use('smstask', layui.factory('smstask')).use(['admin', 'smstask', 'table'], function(){
  var $ = layui.$
  ,form = layui.form
  ,table = layui.table;
  
  form.render(null, 'sms-form-task');

});
</script>